<%@ page language="java" pageEncoding="utf-8"%>
<jsp:useBean id="counter" scope="session" class="com.lee.demo1.controller.Counter" />
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

111111 <fmt:message key="message1" />  
<spring:message code="message1" /><br> 
<%
    String url = request.getRealPath("count.txt");
    String count = counter.ReadFile(url);
    if (session.isNew())
        counter.WriteFile(url, count);
%>
您是第<font color="red"> <%=counter.ReadFile(url)%> </font>位访问者